package cn.sycoder.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum  RoleEnum implements IEnum<Integer> {

    MANAGER(1, "公司管理员"),
    ORDINARY(2, "普通用户");

    private int value;
    private String desc;

    RoleEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
